package com.cjfather.redis.steam.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 
 * @author: todd
 * @date:   2023-08-08
 */

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
public @interface AnnoRedisStreamListener {
	String streamKey() default "";

	String consumerGroup() default "";

	String consumerName() default "";
	
	//生成多个消费者
	int consumerSize() default 1;
}
